<include file="Public/min-header" /> <!--引入 js css img 文件-->
</head>
<body>
    <!--导航  start //-->
    <include file="Public/header" />  <!--引入头部导航  //-->
    <!--导航 End  //-->
    <div id="main">
        <!--右边菜单-->
        <include file="User/menu" />
        <!--右边菜单End-->
        <div class="mainfr-box">
            <div class="place">
                <span>位置：</span>
                <ul class="placeul">
                    <li><a href="__MODULE__/User/index.html">首页➤</a></li>
                    <li><a href="__MODULE__/User/firstlevel.html">提交报单</a></li>
                </ul>
                <ul class="placeula">
                    <li><a href="javascript:location.reload()"><span class="placea"></span>刷新</a></li>
                    <li><a href="javascript:history.go(-1)"><span class="placea"></span>返回上一页</a></li>
                </ul>
            </div>
            <div class="clr"></div>
            <div class="main">

                <form method="post" action="__CONTROLLER__/addbd" onsubmit="return firstlevelcheck();" />
                <table width="100%" border="0" class="Register-table">
                    <tr>
                        <td class="col-sm-2">余额:</td>
                        <td >{$user.user_money}</td>
                        
                    </tr>
                    <if condition="$user['user_money'] gt 3860 ">
                        <tr>
                            <th scope="row">报单数量：</th>
                            <td colspan="3">
                                <input name="order_num" type="text" class="dfinput" id="repwd" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
                      onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'0')}else{this.value=this.value.replace(/\D/g,'')}">
                            </td>
                        </tr>
                        <tr class="odd">
                            <th scope="row">报单备注：</th>
                            <td><input name="user_note" type="text" class="dfinput" id="pwd"></td>
     
                            <input name="user_id" type="hidden" value="{$user_id}">
                        </tr>
                    <else /> 
                        <tr class="odd">
                            <th scope="row">余额不足，</th>
                            <td>请联系管理员充值</td>
                        </tr>
                    </if>
                    
                </table>
                <div class="button-box"><input class="button-style" type="submit" id="but" value="确认提交" ></div>
                </form>
            </div>
        </div>
        <!--foot-->
        <div class="clr"></div>
        <!--footer start //-->
        <include file="Public/footer" />  <!--引入底部 //-->
        <!--footer  end //-->
</body>
</html>
<script>
    function firstlevelcheck()
    {
        var order_num = $('input[name="order_num"]').val();
        if (order_num == '')
        {
            alert('请输入报单数量');
            return false;
        }else if (isNaN(order_num)) {
            alert('请输入数字');
            return false;
        }else if ( order_num<= 0) {
           alert('请输入正整数');
       }

       
        return true;
    }
</script>